﻿
function UnitTest-Get-UnitTestFile-DoesNotReturnNull {
    [Cmdletbinding()]
    Param()

    # arrange
    $path = Get-Location

    # act
    $actual = Get-UnitTestFile -Path $path -Recurse

    # assert
    Assert-IsNotNull -Actual $actual -Message "Get-UnitTestfile returned $null"
    Assert-IsNotNull -Actual $actual.Count -Message "Get-UnitTestfile returned 0 results"
}

function UnitTest-Get-UnitTest-DoesNotReturnNull {
    [Cmdletbinding()]
    Param()

    # arrange
    $path = Get-Location
    $files = Get-UnitTestFile -Path $path -Recurse

    # act
    $actual = $files | Get-UnitTest

    # assert
    Assert-IsNotNull -Actual $actual -Message "Get-UnitTest returned $null"
    Assert-IsNotNull -Actual $actual.Count -Message "Get-UnitTest returned 0 results"
}

